﻿using Manhua2.Common;
using Manhua2.SQLiteTable;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manhua2.DataModel
{
    public class ComicItem : BindableBase
    {
        public SQLiteComic Comic { get; set; }
        public SQLiteChapter Chapter { get; set; }

        public ComicItem(SQLiteComic comic, SQLiteChapter chapter)
        {
            this.Comic = comic;
            this.Chapter = chapter;
        }

        private string _cover;

        public string Cover
        {
            get { return this._cover; }
            set { this.SetProperty(ref this._cover, value); }
        }

        private string _comicTitle;

        public string ComicTitle
        {
            get { return this._comicTitle; }
            set { this.SetProperty(ref this._comicTitle, value); }
        }

        private string _chapterTitle;

        public string ChapterTitle
        {
            get { return this._chapterTitle; }
            set { this.SetProperty(ref this._chapterTitle, value); }
        }

        private string _timestamp;

        public string Timestamp
        {
            get { return this._timestamp; }
            set { this.SetProperty(ref this._timestamp, value); }
        }

        public string Author { get; set; }
    }
}
